package com.cn.service.server.bc.Impl;


import com.cn.mapper.dao.db1.bc.AssistMaterialDetailsDao;
import com.cn.service.server.bc.AssistMaterialDetailsServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cn.bean.vo.bc.AssistsVo;
import java.util.List;

@Service
public class AssistMaterialDetailsServerImpl implements AssistMaterialDetailsServer {
    private final AssistMaterialDetailsDao assistMaterialDetailsDao;

    @Autowired(required=false)
    public AssistMaterialDetailsServerImpl(AssistMaterialDetailsDao assistMaterialDetailsDao) {
        this.assistMaterialDetailsDao = assistMaterialDetailsDao;
    }

    @Override
    public List<AssistsVo> selectAssistsAll(String id, String fabh, int limit, int page) {
        List<AssistsVo> assistsVos = assistMaterialDetailsDao.selectAssistsAll(id, fabh, limit, page);
        return assistsVos;
    }

    @Override
    public List<AssistsVo> selectAssists(String id, String fabh, int limit, int page) {
        return assistMaterialDetailsDao.selectAssists(id,fabh,limit,page);
    }
}
